﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GuestView.master" AutoEventWireup="true" CodeBehind="SearchAuction.aspx.cs" Inherits="BestBuy.PublicViews.SearchAuction" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_Open_Auctions" data-toggle="tab">Open Auctions</a></li>
        </ul>
        <asp:Label ID="lbOpenAuctionEmty" runat="server" Text="No item found"></asp:Label>
        <div class="tab-content">
            <div class="tab-pane active" id="tab_Open_Auctions">
                    <asp:GridView ID="gvAuctions" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" 
                        GridLines="None" Width="80%">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:HyperLinkField DataTextField="Title" HeaderText="Product Name"
                                 DataNavigateUrlFields="ID" 
                                 DataNavigateUrlFormatString="~/UserViews/SellerBid.aspx?AuctionID={0}"/>
                            <asp:BoundField DataField="Subtile" HeaderText="Subtile" ReadOnly="True" 
                                SortExpression="Subtile" />
                            <asp:BoundField DataField="Description" HeaderText="Description" ReadOnly="True" 
                                SortExpression="Description" />
                            <asp:BoundField DataField="Quantity" HeaderText="Quantity" ReadOnly="True" 
                                SortExpression="Quantity" />
                            <asp:BoundField DataField="EndTime" HeaderText="EndTime" ReadOnly="True" 
                                SortExpression="EndTime" />
                        </Columns>
                        <EditRowStyle BackColor="#7C6F57" />
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#E3EAEB" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F8FAFA" />
                        <SortedAscendingHeaderStyle BackColor="#246B61" />
                        <SortedDescendingCellStyle BackColor="#D4DFE1" />
                        <SortedDescendingHeaderStyle BackColor="#15524A" />
                    </asp:GridView>
            <br />
            </div>
        </div>
    </div>
    <br />
    <asp:Label runat="server" ID="lbl"></asp:Label>
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_End_Auctions" data-toggle="tab">Complete Auctions</a></li>
        </ul>
        <asp:Label ID="lbEndAuctionEmty" runat="server" Text="No item found"></asp:Label>
        <div class="tab-content">
            <div class="tab-pane active" id="tab_End_Auctions">
                <asp:GridView ID="gvEndAuctions" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" 
                        GridLines="None" Width="80%">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:HyperLinkField DataTextField="Title" HeaderText="Product Name"
                                 DataNavigateUrlFields="ID" 
                                 DataNavigateUrlFormatString="~/UserViews/SellerBid.aspx?AuctionID={0}"/>
                            <asp:BoundField DataField="Subtile" HeaderText="Subtile" ReadOnly="True" 
                                SortExpression="Subtile" />
                            <asp:BoundField DataField="Description" HeaderText="Description" ReadOnly="True" 
                                SortExpression="Description" />
                            <asp:BoundField DataField="Quantity" HeaderText="Quantity" ReadOnly="True" 
                                SortExpression="Quantity" />
                            <asp:BoundField DataField="EndTime" HeaderText="EndTime" ReadOnly="True" 
                                SortExpression="EndTime" />
                        </Columns>
                        <EditRowStyle BackColor="#7C6F57" />
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#E3EAEB" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F8FAFA" />
                        <SortedAscendingHeaderStyle BackColor="#246B61" />
                        <SortedDescendingCellStyle BackColor="#D4DFE1" />
                        <SortedDescendingHeaderStyle BackColor="#15524A" />
                    </asp:GridView>
            <br />
            </div>
        </div>
    </div>


</asp:Content>
